Problem Following Links

Hello,

i'm new to DOORS DXL and have a Question to following links.

I have 2 Modules,
Module A in Current
Module B with Definitions and several Baselines.
Linkmodules for Links between A and B

Code is as follows:
Object o is an Object in latest Baseline from Modul B
Link l
for l in o <- str_linkmodul_name do
{
if (source l == srcObject)
print "Link exists \n"
}
The Problem is that i get the Message "Link exists" even if there is no link from srcObject to the latest Baseline
(but there are Links to other Baselines or to current)

Where does i make an mistake in the Code?
Does the "for l in o -loop" goes over Links into o from other Baselines or Current?
On some objects in my Module it works on others not. Creating Link manual works instead.

Thank you for help.
SystemAdmin - Wed Oct 17 09:36:20 EDT 2012

Re: Problem Following Links
llandale - Wed Oct 17 11:15:30 EDT 2012

Perhaps you need inside the loop:
  • srcObject = source(l)
I don't know much about baselined links, but perhaps you need:
  • for l in all o <- str_linkmodul_name do

-Louie

Re: Problem Following Links
SystemAdmin - Thu Oct 18 03:42:31 EDT 2012

I forgot to notice that srcObject is an object from outside the loop, which should be checked if there is a link to baseline.